package com.chris.dubbo.service.impl;

import com.chris.dubbo.api.IHelloService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

@Service
public class HelloServiceImpl implements IHelloService {
    @Value("${dubbo.application.name}")
    private String serviceName;

    public String sayHello(String name){
        return String.format("[%s]:Hello,%s",serviceName,name);
    }
}
